import request from '@/utils/request'

export function getEmployeesSimple(){
    return request({
        url:'/sys/user/simple'
    })
}

export function getEmployees(page, size) {
    return request({
      url: '/sys/user/',
      params: { page: page, size: size }
    })
  }
  
  /**
   * @description: 添加员工
   * @param {*} data
   * @return {*}
   */
  export function addEmployee(data) {
    return request({
      method: 'post',
      url: '/sys/user',
      data
    })
  }
  
  /**
   * @description: 删除员工
   * @param {*} id 员工id
   * @return {*}
   */
  export function delEmployee(id) {
    return request({
      method: 'delete',
      url: `/sys/user/${id}`
    })
  }
  